class Resource:
    __slots__ = ['key', 'name', 'price']

    def __init__(self, key, **kwargs):
        self.key = key
        self.name = kwargs['name']
        self.price = kwargs['price']
